package com.tyk.bookstore.front.comment.repository;


import com.tyk.bookstore.front.comment.model.entity.CommentDo;
import com.tyk.bookstore.front.common.dal.mapper.IMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
 * @author tyk
 * @description 评论管理
 */
@Mapper
public interface CommentRepository extends IMapper<CommentDo> {
    Long existById(@Param("id") Long id, @Param("memberId") Long memberId);

    Long existByOrderDetailId(@Param("orderDetailId") Long orderDetailId, @Param("memberId") Long memberId);
}
